package com.example.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@Slf4j
@EnableScheduling
public class DemoApplication {

    public static void main(String[] args) {

        Runtime.getRuntime().addShutdownHook(new Thread(()->{
            log.info("app shutdown hook executed");
        }));

        SpringApplication.run(DemoApplication.class, args);
        log.info("DemoApplication is start ok ......");
    }

}
